<div class="projectFeature">
	<h2>Công Trình Nổi Bật</h2>
    <ul class="mainProjectFeature">
        <?php
            $db = new DBQuery;
            $sql = "SELECT * FROM project ORDER BY pro_priority ASC LIMIT 6";
            $project = $db->query($sql);
            foreach($project as $pro):
        ?>
            <li class="bigProject fl">
                <figure>
                    <a class="single_image" href="../images/project_image/<?php echo $pro['pro_image'];?>">
                        <img class="projectImg" src="../images/project_image/<?php echo $pro['pro_image'];?>" alt=""  />
                    </a>
                </figure>
                <div class="dividehr"></div>
                <h3><?php echo $pro['pro_name_vn'];?></h3>
                <h6>HẠNG MỤC: <?php 
                switch($pro['pro_type_id']){
                    case 0:echo 'trung tâm hội nghị';break;
                    case 1:echo 'trung tâm thể thao';break;
                    case 2:echo 'bệnh viện - TT Y tế';break;
                    case 3:echo 'tòa nhà - văn phòng';break;
                }
                ?></h6>
                <hr />
                <div class="summaryInfo">
                   <!-- <div class="startDate"><h6 class="fl">Khởi công : </h6><span>&nbsp;<?php echo ($pro['pro_start_date']) ? date('d/m/Y',$pro['pro_start_date']) : 'Đang cập nhật'?></span></div>
                    <div class="endDate"><h6 class="fl">Hoàn thành : </h6><span>&nbsp;<?php echo ($pro['pro_end_date']) ? date('d/m/Y',$pro['pro_end_date']) : 'Đang hoàn thành'?></span></div> -->
                    <div class="owner"><h6 class="fl">Chủ đầu tư : </h6>&nbsp;UBND Thành phố Hà Nội</div>
                </div>
            </li>
        <?php endforeach;?>
	</ul>	
</div>
<script>
$("a.single_image").fancybox({
    'transitionIn'	:	'elastic',
	'transitionOut'	:	'elastic',
	'speedIn'		:	600, 
	'speedOut'		:	200, 
	'overlayShow'	:	false
});
</script>

<div class="otherProject">
	<h2>Các Công Trình Khác</h2>
	<div class="otherProjectModule">
		<div class="title5"><span class="colorBlue">Trung Tâm </span>Hội Nghị</div>
        <ul>
        <?php
            $db = new DBQuery;
            $sql = "SELECT * FROM project WHERE pro_type_id = 0 ORDER BY pro_priority";
            $other_project = $db->query($sql);
            foreach($other_project as $oth_pro):
        ?>
            <li class="normalProject fl">
                <figure>
                    <img src="../images/project_image/<?php echo $oth_pro['pro_image'];?>" alt=""  />
                </figure>
                <hr />
                <h3 rel="tooltip" title="<?php echo $oth_pro['pro_name_vn']?>"><?php echo cut_string($oth_pro['pro_name_vn'],20);?></h3>
            </li>
        <?php endforeach;?>
        </ul>
   
   </div>
	
	<div class="otherProjectModule">
		<div class="title5"><span class="colorBlue">Trung Tâm </span>Thể Thao</div>
         <ul>
        <?php
            $db = new DBQuery;
            $sql = "SELECT * FROM project WHERE pro_type_id = 1 ORDER BY pro_priority";
            $other_project = $db->query($sql);
            foreach($other_project as $oth_pro):
        ?>
            <li class="normalProject fl">
                <figure>
                    <img src="../images/project_image/<?php echo $oth_pro['pro_image'];?>" alt=""  />
                </figure>
                <hr />
                <h3 rel="tooltip" title="<?php echo $oth_pro['pro_name_vn']?>"><?php echo cut_string($oth_pro['pro_name_vn'],20);?></h3>
            </li>
        <?php endforeach;?>
        </ul>
	</div>
	
	<div class="otherProjectModule">
		<div class="title5"><span class="colorBlue">Bệnh Viện - </span>TT Y Tế</div>
        <ul>
        <?php
            $db = new DBQuery;
            $sql = "SELECT * FROM project WHERE pro_type_id = 2 ORDER BY pro_priority";
            $other_project = $db->query($sql);
            foreach($other_project as $oth_pro):
        ?>
            <li class="normalProject fl">
                <figure>
                    <img src="../images/project_image/<?php echo $oth_pro['pro_image'];?>" alt=""  />
                </figure>
                <hr />
                <h3 rel="tooltip" title="<?php echo $oth_pro['pro_name_vn']?>"><?php echo cut_string($oth_pro['pro_name_vn'],20);?></h3>
            </li>
        <?php endforeach;?>
        </ul>
	</div>
	
	<div class="otherProjectModule">
		<div class="title5"><span class="colorBlue">Tòa Nhà - </span>Văn Phòng</div>
        <ul>
        <?php
            $db = new DBQuery;
            $sql = "SELECT * FROM project WHERE pro_type_id = 3 ORDER BY pro_priority";
            $other_project = $db->query($sql);
            foreach($other_project as $oth_pro):
        ?>
            <li class="normalProject fl">
                <figure>
                    <img src="../images/project_image/<?php echo $oth_pro['pro_image'];?>" alt=""  />
                </figure>
                <hr />
                <h3 rel="tooltip" title="<?php echo $oth_pro['pro_name_vn']?>"><?php echo cut_string($oth_pro['pro_name_vn'],20);?></h3>
            </li>
        <?php endforeach;?>
        </ul>
	</div>			
</div>
<script>
$('.normalProject h3').tooltip({placement:'bottom'});
</script>